import { connect } from 'react-redux';
import inject from "../../../../../redux/inject";

// 业务redux
import InvoiceOperatingView, { showModal, buyerBillSearch, saveFormData, getLinkData } from '../InvoiceOperatingViewWrap/redux';
// 权限redux
import funcPermissions, { getPlatformFuncPermission } from 'jdcloudecc/reducer/functionPermissions';

// 动态组件redux
import dyComponent, { load } from './redux-loadComponent';

// 注册redux的组件
import C from "./component";

// 注入动态数据源
@inject({ InvoiceOperatingView, funcPermissions, dyComponent })

// 数据源、方法等绑定组件
@connect(
  state => ({ 
    InvoiceOperatingView: state.InvoiceOperatingView, 
    funcPermissions: state.funcPermissions,
    components: state.dyComponent
  }), 
  { showModal, buyerBillSearch, saveFormData, getLinkData, getPlatformFuncPermission, load }
)
export default class BuyerBillLists extends C {}
